﻿using System;
using System.Collections.Generic;
using Autodesk.Revit.DB;
using YJKGeometryFuncs;

namespace YJKSparseBreadth
{
	internal class LevelEqualCompare : IEqualityComparer<Level>
	{
		public bool Equals(Level x, Level y)
		{
			if (x == null || y == null)
			{
				return x.Equals(y);
			}
			return Geometry.IsEqual(x.Elevation, y.Elevation);
		}

		public int GetHashCode(Level obj)
		{
			return obj.GetHashCode();
		}
	}
}
